<%include header %>

<% if(user){ %>
<% if(datas.length<0){ %>
<h2>请添加物品</h2>
<%}else{ %>
	
<% datas.forEach(function(data){%>
<section class="wupin">
	<img src="/images/<%=data.title%>.jpg" />
	
	<h3><a href=""><%=data.title %></a></h3>
	<div class="one">
		<p>
		价格:<span><%=data.price %>  ¥ | </span>分类:
		<a href="">
			<%=data.tag%>
		</a>
		</p>
	</div>
	<div class="address">
		<p>
			<span>
			月销售:<%=data.monNum%>件
			</span>
			<span><%=data.address%></span>
		</p>
		<p>促销:<%=data.manjian%></p>
	</div>
	
	<div class="two">
		<p>
			商家:<%=data.author %>
			上架时间:<span><%=data.time.day %></span>
		</p>
		
	</div>
	<div class="operate">
		<a href="/remove/<%= data.author %>/<%= data.time.day %>/<%= data.title %>">删除</a>
		<a href="/edit/<%= data.author %>/<%= data.time.day %>/<%= data.title %>">修改</a>
	</div>
	
	
</section>
<% }) %>
<%}%>
<%}%>

<%include footer%>